//package com.zmn.plat.dubbo.impl.channel;
//
//import java.util.List;
//import javax.annotation.Resource;
//import javax.validation.constraints.NotNull;
//import javax.validation.constraints.Positive;
//
//import com.zmn.common.constant.GlobalConsts;
//import com.zmn.manager.common.database.annotation.ReadOnlyConnection;
//import com.zmn.plat.business.interfaces.channel.ChannelProductMapBService;
//import com.zmn.plat.common.dto.channel.ChannelProductMapDRO;
//import com.zmn.plat.common.dto.product.ServProductDRO;
//import com.zmn.plat.common.exception.PlatException;
//import com.zmn.plat.dubbo.interfaces.channel.ChannelProductMapListRemoteService;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.dubbo.config.annotation.Service;
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//
///**
// * 描述: 渠道产品映射dubbo接口实现类
// *
// * @author linfeng
// * @since: 2020/10/29 14:12
// */
//@Slf4j
//@Service(version = DubboConsts.INTERFACE_VERSION, validation = "true")
//public class ChannelProductMapListRemoteServiceImpl implements ChannelProductMapListRemoteService {
//
//    @Resource
//    protected ChannelProductMapBService channelProductMapBService;
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ChannelProductMapDRO>> listByChannelIdAndProductId(Integer channelId, Integer productId) {
//        log.info("listByChannelIdAndProductId参数：channelId：{}，productId：{}");
//
//        try {
//            List<ChannelProductMapDRO> result = channelProductMapBService.listByChannelIdAndProductId(channelId, productId);
//            return ResponseDTO.success(result);
//        } catch (PlatException e) {
//            log.error(e.getMessage());
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("系统异常，内部错误！参数：channelId：{}，productId：{}", channelId, productId, e);
//            return ResponseDTO.fail(GlobalConsts.FAILD_MSG);
//        }
//    }
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ServProductDRO>> listByChannelIdAndProductParentIdAndProductSubId(Integer channelId, String channeProductParentId, String channeProductSubId) {
//        log.info("listByChannelIdAndProductParentIdAndProductSubId参数：channelId：{}，channeProductParentId：{}，channeProductSubId：{}", channelId, channeProductParentId, channeProductSubId);
//
//        try {
//            List<ServProductDRO> result = channelProductMapBService.listByChannelIdAndProductParentIdAndProductSubId(channelId, channeProductParentId, channeProductSubId);
//            return ResponseDTO.success(result);
//        } catch (PlatException e) {
//            log.error(e.getMessage());
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("系统异常，内部错误！参数：channelId：{}，channeProductParentId：{}，channeProductSubId：{}", channelId, channeProductParentId, channeProductSubId, e);
//            return ResponseDTO.fail(GlobalConsts.FAILD_MSG);
//        }
//    }
//}
